module.exports = {
    chainWebpack: config => {
        config.module
            .rule("pug")
            .test(/\.pug$/)
            .use("pug-html-loader")
            .loader("pug-html-loader")
            .end();
    },
    devServer: {
        port: 8080,
        proxy: {
            "/api/": {
                target: "http://xxx.xxx.xxx/",
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    "^/api": "",
                },
            },
        },
    },
    productionSourceMap: false,
};
